<div id="nav" class='container-fluid nav' style='margin-top:12px;'>
  <div class='container'>
  <ul>
    <?php foreach ($collections as $c):?>
    <li><a class='nav <?php if ($c->id == $cid) echo 'active';?>' href='<?php echo "/gallery/?cid={$c->id}";?>'><?php echo $c->name;?></a></li>
    <?php endforeach;?>
  </ul>
  </div>
</div>

<style>
</style>
